import ajax from '@/config/ajax'
const BASE_URL = process.env.BASE_API + '/que'


// 获取全部测评信息
export const reqGetSubjectsList = () => ajax(process.env.BASE_API + '/admin' + '/getSubjectsList')
// 获取全部题目信息
export const reqGetQuestiontsList = (singleContent) => ajax(BASE_URL + '/list', { singleContent })
// 获取搜索题目信息
export const reqSearchQuestionsList = (singleContent) => ajax(BASE_URL + '/list', { singleContent })
// 请求添加题目信息
export const reqInsertQuestionInfo = (temp) => ajax(BASE_URL + '/insert', temp, 'POST')
// 请求更新题目信息
export const reqUpdateQuestiontInfo = (row) => ajax(BASE_URL + '/update', row, 'POST')
// 请求删除题目
export const reqDeleteQuestion = (queId) => ajax(BASE_URL + '/deleteByQueId/'+queId)

/*
  通过langId获取问题信息  
 */
export const reqPapersInfo = (langId) => ajax(process.env.BASE_API + '/student' + '/getPapersInfo', { langId })

// /api/question/studentRecord
export const studentRecord = () => ajax(process.env.BASE_API + '/question/studentRecord')